package com.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * ClassName: ResultVO
 * Package: com.gzp.util
 *
 * @author: guanzepeng
 * @Date: 2021/4/19 17:47 星期一
 * @Description: 返回给前端的响应工具类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ResultVO implements Serializable {
	/**
	 * 响应码
	 */
	private Integer status;
	/**
	 * 响应简要信息
	 */
	private String message;
	/**
	 * 响应的主体数据
	 */
	private Object data;

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

	public ResultVO(Integer status, String message) {
		this.status = status;
		this.message = message;
	}

}
